package com.zefor.pojo;

import java.util.Date;
import java.util.List;

public class FarmPojo {
    //养殖场id
    private Long id;

    //养殖场名称
    private String name;

    //对应的栏舍
    private List<CorralPojo> corrals;

    //养殖场创建时间
    private Date createTime;

    public FarmPojo() {
    }

    public FarmPojo(Long id, String name, List<CorralPojo> corrals, Date createTime) {
        this.id = id;
        this.name = name;
        this.corrals = corrals;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<CorralPojo> getCorrals() {
        return corrals;
    }

    public void setCorrals(List<CorralPojo> corrals) {
        this.corrals = corrals;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "FarmPojo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", corrals=" + corrals +
                ", createTime=" + createTime +
                '}';
    }
}
